using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace RaisingStudio.Data.Common
{
    public class LogManager : ILogManager
    {
        private TextWriter _log;

        public TextWriter Log
        {
            get { return _log; }
            set { _log = value; }
        }

        public virtual void WriteLine(string value)
        {
            if (this._log != null)
            {
                this._log.WriteLine(value);
            }
        }

        public virtual void WriteLine(string format, object arg0)
        {
            if (this._log != null)
            {
                this._log.WriteLine(format, arg0);
            }
        }

        public virtual void WriteLine(string format, params Object[] arg)
        {
            if (this._log != null)
            {
                this._log.WriteLine(format, arg);
            }
        }
    }
}
